package com.echo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 前端操作比如增删改查等的权限表
 * </p>
 *
 * @author echo
 * @since 2024-10-31
 */
@TableName("permission")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 前端页面操作表主键id
     */
    @TableId(value = "action_id", type = IdType.AUTO)
    private Integer actionId;

    /**
     * 前端操作的名字
     */
    private String actionName;

    /**
     * 页面操作的描述
     */
    private String actionDescription;

    /**
     * 当前操作是否需要校验,true为1,0为false
     */
    private Boolean defaultCheck;

    public Integer getActionId() {
        return actionId;
    }

    public void setActionId(Integer actionId) {
        this.actionId = actionId;
    }
    public String getActionName() {
        return actionName;
    }

    public void setActionName(String actionName) {
        this.actionName = actionName;
    }
    public String getActionDescription() {
        return actionDescription;
    }

    public void setActionDescription(String actionDescription) {
        this.actionDescription = actionDescription;
    }
    public Boolean getDefaultCheck() {
        return defaultCheck;
    }

    public void setDefaultCheck(Boolean defaultCheck) {
        this.defaultCheck = defaultCheck;
    }

    @Override
    public String toString() {
        return "Permission{" +
            "actionId=" + actionId +
            ", actionName=" + actionName +
            ", actionDescription=" + actionDescription +
            ", defaultCheck=" + defaultCheck +
        "}";
    }
}
